package com.hwadee.ems.service;

import com.hwadee.ems.domain.dto.PageQuery;
import com.hwadee.ems.domain.dto.Result;
import com.hwadee.ems.domain.po.ClassroomApplication;
import com.hwadee.ems.domain.vo.ClassroomApplicationVO;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 教室借用申请 服务类
 * </p>
 *
 * @author EnosElinsa
 * @since 2024/06/21
 */
public interface IClassroomApplicationService extends IService<ClassroomApplication> {

    Result<IPage<ClassroomApplicationVO>> page(PageQuery pageQuery, 
        String applicantName, 
        String approverName,
        Integer approvalStatus, 
        Long semesterId, 
        Integer week);

    Result<IPage<ClassroomApplicationVO>> pageByApplicantId(Long applicantId, 
        PageQuery pageQuery,        
        String approverName,
        Integer approvalStatus,
        Long semesterId,
        Integer week);

    Result<Long> saveWithApproval(ClassroomApplication classroomApplication);


}
